package luigibros.data.xml.user;

import java.lang.Thread;
import java.awt.Graphics;

/**
 * 
 * @author keilmanj
 *
 */
public class MoveThread implements Runnable
{
	protected double startx;
	protected double starty;
	protected double endx;
	protected double endy;
	protected double movex;
	protected double movey;
	protected Thread move;
	
	public void MoveThread()
	{
		move = new Thread(this);
		move.start();
 	}
	
	public void run()
	{
		startx = // beginning x position of mario;
		starty = // beginning y position of mario;
		endx = // end x position of mario;
		endy = // end y position of mario;
			
		while(true)
		{
		
			if(startx != endx)
				// move mario
			
			if(starty != endy)
				// move mario
				
			movex = endx - startx;
			movey = endy - starty;
			
			this.repaint()
		}
	}
	
}
